slcc: Implemented create_array function