my solutions to poj