A simple solution is to calculate the indices for your "value" and "suit" arrays for any number between 1 and 52.
Hint: imagine your cards are ordered by suits (first 13 cards are hearts, next 13...